package cn.tedu.collection;
/*创建学生类*/
//2.独立完成Student类,包含属性:name age gender与全参构造
public class Student {
    /*private */String name;
    int age;
    char gender;

    public Student(String name, int age, char gender) { //唯一方式创建对象,然后回demo写代码
        this.name = name;
        this.age = age;
        this.gender = gender;
    }

    /*@Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", gender=" + gender +
                '}';
    }*/
}
